//
//  SuperFileUtil.swift
//  文件工具类
//
//  Created by jin on 2024/9/10.
//

import Foundation

class SuperFileUtil {
    /// 是否存在，文件夹，文件都可以判断
    static func exists(_ data: String) -> Bool {
        let manager = FileManager.default
        return manager.fileExists(atPath: data)
    }

    /// 创建文件夹
    static func mkdirs(_ data: String) {
        let manager = FileManager.default
        try! manager.createDirectory(atPath: data, withIntermediateDirectories: true)
    }
}
